package io.zhoujie.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.zhoujie.modules.app.entity.AppSignEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhoujie
 * @email 813685764@qq.com
 * @date 2024/3/15 23:06
 */
@Mapper
public interface AppSignDao extends BaseMapper<AppSignEntity> {
    /**
     * 查询签到排行
     * @param userId
     * @return
     */
    Integer selectTopToday(Integer userId);

    /**
     * 查询签到列表
     * @param appSignEntity
     * @return
     */
    List<AppSignEntity> selectSignList(AppSignEntity appSignEntity);

    void deleteByUserId(@Param("ids") Integer[] id);
}
